<h2>Recuperar contraseña</h2>
<%@title_view = 'Usuarios'%>

<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => {:onsubmit => "return validate(this);", :method => :put}) do |f| %>
  <%= devise_error_messages! %>

<div class="shadow" style="width: 400px; padding-top: 15px; height: 145px;">

  <p><label style = "margin-left: 30px">Ingrese su correo electrónico</label>
  <%= f.email_field :email, :style => "margin-left: 30px" %></p>

  <p><%= f.submit "Recuperar", :style => "margin-left: 115px" %></p>
<% end %>

  <script type="text/javascript">
    // form validation function //
    function validate(form) {
      //input
      var email = form.user_email.value;

      if(email == "") {
        inlineMsg('user_email','Debe ingresar su correo.',3);
        return false;
      }

    }
  </script>
</div>
